<?php
            $connect=  mysql_connect('localhost', 'root','vertrigo');
            mysql_selectdb('tdc', $connect);

            // Check connection
          
            
            $id= $_POST['id'];
            
            $clear=$_POST['clear'];
            
            if(isset($clear))
            {
                $del=  mysql_query("DELETE FROM `tdc`.`students` WHERE `students`.`id` = $id");
                header('location:index.php');
            }
    

